package com.yida.system.api.domain;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;

/**
 * 手机短信记录对象 sys_sms
 * 
 * @author hmh
 * @date 2022-11-03
 */
public class SysSms extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 短信ID */
    private Long smsId;

    /** 短信内容 */
    @Excel(name = "短信内容")
    private String sms;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phonenumber;

    /** 短信内容集合 */
    @Excel(name = "短信内容集合")
    private List<String> smsList;

    /** 手机号集合 */
    @Excel(name = "手机号集合")
    private List<String> phonenumberList;

    /** 有效时间 */
    private Long activeTime;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 请求ip地址 */
    @Excel(name = "请求ip地址")
    private String ipaddr;

    @Excel(name = "请求ip中文地址")
    private String ipLocal;

    /** 短信类型0:其他;1:短信验证码 */
    @Excel(name = "短信类型0:其他;1:短信验证码")
    private Integer smsType;

    /** 來源 */
    private String smsSource;

    public void setSmsId(Long smsId) {
        this.smsId = smsId;
    }

    public Long getSmsId() {
        return smsId;
    }

    public void setSms(String sms) {
        this.sms = sms;
    }

    public String getSms() {
        return sms;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public Long getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(Long activeTime) {
        this.activeTime = activeTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public String getIpLocal() {
        return ipLocal;
    }

    public void setIpLocal(String ipLocal) {
        this.ipLocal = ipLocal;
    }

    public Integer getSmsType() {
        return smsType;
    }

    public void setSmsType(Integer smsType) {
        this.smsType = smsType;
    }

    public String getSmsSource() {
        return smsSource;
    }

    public void setSmsSource(String smsSource) {
        this.smsSource = smsSource;
    }

    public List<String> getSmsList() {
        return smsList;
    }

    public void setSmsList(List<String> smsList) {
        this.smsList = smsList;
    }

    public List<String> getPhonenumberList() {
        return phonenumberList;
    }

    public void setPhonenumberList(List<String> phonenumberList) {
        this.phonenumberList = phonenumberList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("smsId", getSmsId()).append("sms", getSms()).append("phonenumber", getPhonenumber()).append("createTime", getCreateTime()).append("expireTime", getExpireTime()).append("ipaddr", getIpaddr()).append("smsType", getSmsType()).toString();
    }
}
